<%@ include file="/common/taglibs.jsp"%>
<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %>


<title><fmt:message key="itemDetail.title"/></title>
<content tag="heading"><fmt:message key="itemDetail.heading"/></content>

<html:form action="saveItem" method="post" styleId="itemForm" onsubmit="return validateItemForm(this)">
<ul>

<html:hidden property="itemId"/>

    <li>
        <carsite:label styleClass="desc" key="itemForm.num"/>
        <html:errors property="num"/>
        <html:text property="num" styleId="num" styleClass="text medium"/>

    </li>

    <li>
        <carsite:label styleClass="desc" key="itemForm.order"/>
        <html:errors property="order"/>
       

    </li>

    <li>
        <carsite:label styleClass="desc" key="itemForm.sn"/>
        <html:errors property="sn"/>
        <html:text property="sn" styleId="sn" styleClass="text medium"/>

    </li>

    <li>
        <carsite:label styleClass="desc" key="itemForm.type"/>
        <html:errors property="type"/>
        <html:text property="type" styleId="type" styleClass="text medium"/>

    </li>

    <li class="buttonBar bottom">
        <html:submit styleClass="button" property="method.save" onclick="bCancel=false">
            <fmt:message key="button.save"/>
        </html:submit>

        <html:submit styleClass="button" property="method.delete" onclick="bCancel=true; return confirmDelete('Item')">
            <fmt:message key="button.delete"/>
        </html:submit>

        <html:cancel styleClass="button" onclick="bCancel=true">
            <fmt:message key="button.cancel"/>
        </html:cancel>
    </li>
</ul>
</html:form>

<script type="text/javascript">
    Form.focusFirstElement($("itemForm"));
</script>
<%--
<html:javascript formName="itemForm" cdata="false" dynamicJavascript="true" staticJavascript="false"/>
--%>
<script type="text/javascript" src="<html:rewrite page="/scripts/validator.jsp"/>"></script>
